package com.oa.hyperion.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.hyperion.entity.Template;
import com.oa.hyperion.repository.TemplateMapper;
import com.oa.hyperion.service.TemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * @author Liu
 * @date 2022年01月17日 16:26
 */
@Service
public class TemplateServiceImpl extends ServiceImpl<TemplateMapper,Template> implements TemplateService {
    private final TemplateMapper templateMapper;

    public TemplateServiceImpl(TemplateMapper templateMapper) {
        this.templateMapper = templateMapper;
    }

    @Override
    public List<Template> findAllTemplates() {
        return templateMapper.findAllTemplates();
    }

    @Override
    public void deleteTemplate(Integer templateId) {
        templateMapper.deleteTemplate(templateId);
    }

}
